package com.gitee.kenewstar.migration.service.migration;

import com.gitee.kenewstar.migration.entity.CommonResult;
import com.gitee.kenewstar.migration.entity.TemplateHeader;
import com.gitee.kenewstar.migration.entity.TemplateHeaderTl;
import com.gitee.kenewstar.migration.entity.TemplateLine;
import com.gitee.kenewstar.migration.entity.TemplateLineTl;
import com.gitee.kenewstar.migration.entity.TemplateTarget;
import com.gitee.kenewstar.migration.entity.TemplateTargetTl;

import java.util.List;
import java.util.Map;

/**
 * @author kenewstar
 */
public interface ImportTmplMigrationService {



    List<CommonResult> importTmplMigration(List<String> tmplCodeList, Long tenantId);

    void singleImportTmplMigration(TemplateHeader header,
                                   Map<Long, List<TemplateHeaderTl>> headerTlsMap,
                                   Map<Long, List<TemplateTarget>> targetListMap,
                                   Map<Long, List<TemplateTargetTl>> targetTlsMap,
                                   Map<Long, List<TemplateLine>> lineListMap,
                                   Map<Long, List<TemplateLineTl>> lineTlsMap);

    List<CommonResult> excelImportMigration(List<TemplateHeader> headerList);

}
